/** 将时间戳转换为日期 */
export function timestampTransformDate(timestamp: number) {
  let date = new Date(timestamp * 1000)
  return date.toLocaleDateString().replace(/\//g, "-") + " " + date.toTimeString().substring(0, 8)
}

/** 给指定号码打电话*/
export function callUpToPhone(phone: string) {
  uni.makePhoneCall({
    phoneNumber: phone,
    success: (res: any) => {
      console.log('拨打电话成功', res);
    }
  })
}
